home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Telephone Manager / Stiletto Sources / Headers / TestModule.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-05  |  2.0 KB  |  71 lines  |  [TEXT/MPS ]

  1. /************************************************************************************************/
  2. /*                                                                                                */
  3. /*    Program Name:    Stiletto                                                                    */
  4. /*                                                                                                */
  5. /*    File Name:        TesModule.h                                                                    */
  6. /*                                                                                                */
  7. /*    © Apple Computer, Inc. 1991-1995                                                            */
  8. /*    All Rights Reserved                                                                            */
  9. /*                                                                                                */
  10. /*    Revision History:                                                                            */
  11. /*                                                                                                */
  12. /*        Date        Who                    Modification                                            */
  13. /*                                                                                                */
  14. /*        1991-07-10    Chris Halim            Original version                                        */
  15. /*        1995-06-26    Jaakko Railo        Version 2.0                                                */
  16. /*                                                                                                */
  17. /************************************************************************************************/
  18.  
  19. /****************************************** DESCRIPTION ******************************************
  20.  
  21. *************************************************************************************************/
  22.  
  23. /************************************************************************************************/
  24. /************************************************************************************************/
  25.  
  26.  
  27. #ifndef    __TESTMODULE__
  28. #define    __TESTMODULE__
  29.  
  30. #ifndef __TELEPHONES__
  31. #include "Telephones.h"
  32. #endif
  33.  
  34. #ifndef __CHRSMODULES__
  35. #include "CHRSModules.h"
  36. #endif
  37.  
  38.  
  39. typedef pascal short (*TestModuleProcPtr)(CHRSPtr paramPtr);
  40.  
  41. enum {
  42.     uppTestModuleProcInfo = kPascalStackBased
  43.          | RESULT_SIZE(SIZE_CODE(sizeof(short)))
  44.          | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(CHRSPtr)))
  45. };
  46.  
  47. #if GENERATINGCFM
  48. #define CallTestModuleProc(userRoutine, paramPtr)        \
  49.         CallUniversalProc((UniversalProcPtr)(userRoutine), uppTestModuleProcInfo, (paramPtr))
  50. #else
  51. #define CallTestModuleProc(userRoutine, paramPtr)        \
  52.         (*(userRoutine))((paramPtr))
  53. #endif
  54.  
  55.  
  56. #ifdef __cplusplus
  57. extern "C" {
  58. #endif    
  59.  
  60.  
  61. void    ExecuteAnyModule (void);
  62. void    ExecuteModule (FSSpecPtr theFile);
  63.  
  64.  
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68.  
  69.  
  70. #endif  /* __TESTMODULE__ */
  71.